package com.gitee.mp.core.mapper;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author hongda.li
 */
@Setter
@Getter
public class MilvusMapperFactoryBean<T> implements FactoryBean<T> {

    private Class<T> mapper;

    private MilvusMapperFactory mapperFactory;

    @Override
    public T getObject() {
        return this.mapperFactory.getMapper(mapper);
    }

    @Override
    public Class<?> getObjectType() {
        return this.mapper;
    }
}
